<?php
namespace Api\Service;

/**
 * 支持的支付通道
 */
class PaymentService
{
    /**
     * 银行列表
     * @param  [type] $user_id [description]
     * @return [type]          [description]
     */
    public function lists($method)
    {
        switch ($method) {
            case 'app':
                return [
                    [
                        'key'  => 'wechat',
                        'name' => '微信支付',
                        'logo' => 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1511859945333&di=affdeae921d8aef97ace6cb17c29d91f&imgtype=0&src=http%3A%2F%2Fe.hiphotos.baidu.com%2Fzhidao%2Fwh%3D900%2C1200%2Fsign%3D971f02288a5494ee877707101dc5cccf%2Fa8014c086e061d956ebab4af7df40ad163d9caad.jpg',
                    ],
                    [
                        'key'  => 'alipay',
                        'name' => '支付宝',
                        'logo' => 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1511860079210&di=f5648552f0de92e0a0dba188bdba5aba&imgtype=0&src=http%3A%2F%2Fuus-img6.android.d.cn%2Fcontent_pic%2F201512%2Fbehpic%2Ficon%2F597%2F2-2597%2Ficon-p.png',
                    ],
                ];

            default:
                return [];
        }
    }
}
